ExamPlay Light Logo
Anmelden

Computer Science for IGCSE & O level - Algorithm Design And Problem Solving (Section 7 - No. 3)

What is the purpose of the inner loop in a bubble sort algorithm?
To initialize the array.
To control the overall number of passes.
To compare adjacent items and swap them if necessary.
To display the sorted list.

Erläuterung

The inner loop does the actual sorting by comparing elements.

Kommentare (0)

Zum Kommentieren anmelden
Werbung
BrainBehindX Inc Logo
©2026; Angetrieben von BrainBehindX Inc